package org.numb.designpattern.singleton;

public class SingletonDcl {
    private static volatile SingletonDcl instance;

    private SingletonDcl () {

    }

    public static SingletonDcl getInstance() {
        if (instance == null) {
            synchronized (SingletonDcl.class) {
                if (instance == null) {
                    instance = new SingletonDcl();
                }
            }
        }
        return instance;
    }
}
